package com.neusoft.my12306.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 葛彬
 * @since 2023-07-20
 */
public class Ticket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车票id
     */
    @TableId(value = "ticket_id", type = IdType.AUTO)
    private Integer ticketId;

    /**
     * 车次id
     */
    private String trainno;

    /**
     * 路线
     */
    private String trainPath;

    /**
     * 车厢
     */
    private String carriage;

    /**
     * 行数
     */
    private String rows;

    /**
     * 座位
     */
    private String seat;

    /**
     * 日期
     */
    private String date;

    public Integer getTicketId() {
        return ticketId;
    }

    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }
    public String getTrainno() {
        return trainno;
    }

    public void setTrainno(String trainno) {
        this.trainno = trainno;
    }
    public String getTrainPath() {
        return trainPath;
    }

    public void setTrainPath(String trainPath) {
        this.trainPath = trainPath;
    }
    public String getCarriage() {
        return carriage;
    }

    public void setCarriage(String carriage) {
        this.carriage = carriage;
    }
    public String getRows() {
        return rows;
    }

    public void setRows(String rows) {
        this.rows = rows;
    }
    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Ticket{" +
            "ticketId=" + ticketId +
            ", trainno=" + trainno +
            ", trainPath=" + trainPath +
            ", carriage=" + carriage +
            ", rows=" + rows +
            ", seat=" + seat +
            ", date=" + date +
        "}";
    }
}
